import request from '@/utils/request'

// 查询核酸点列表
export function listPlace(query) {
  return request({
    url: '/eservice/place/list',
    method: 'get',
    params: query
  })
}

// 查询核酸点详细
export function getPlace(noticePlaceId) {
  return request({
    url: '/eservice/place/' + noticePlaceId,
    method: 'get'
  })
}

// 新增核酸点
export function addPlace(data) {
  return request({
    url: '/eservice/place',
    method: 'post',
    data: data
  })
}

// 修改核酸点
export function updatePlace(data) {
  return request({
    url: '/eservice/place',
    method: 'put',
    data: data
  })
}

// 删除核酸点
export function delPlace(noticePlaceId) {
  return request({
    url: '/eservice/place/' + noticePlaceId,
    method: 'delete'
  })
}
